<template>
  <div>
    This is Argu 
    {{ name }}
  </div>
</template>

<script>
export default {
  props: {
    name: {
      type: String,
      default: 'lison'
    }
  },
  //路由发生变化,组件被复用的时候调用的生命周期钩子函数
  beforeRouteUpdate(to,from,next) {
    console.log(to.name,from.name);
  },
}
</script>

